{extend name="common@base" /}

{block name="head_extend"}
    <script src="//cdn.ckeditor.com/4.9.2/full/ckeditor.js"></script>
{/block}

{block name="title"}{$user->nickname}{/block}

{block name="body_header_jumu"}
<div class="jumbotron jumbotron-fluid">
    <div class="container">
        <h1>{$user->nickname}</h1>
        <p>{$user->personalitySignature}</p>
    </div>
    <ul class="nav nav-pills nav-justified">
        {if condition="isset($menus)"}
        {volist name="menus" id="menu"}
        {if condition="$menu.flag==99"}
            <li role="presentation" class="{if condition='$menu->active==true'}active {/if}">
                <a class="navbar-link" href="{$menu.url}">{$menu.name}</a>
            </li>
        {/if}
        {/volist}
        {/if}
    </ul>
</div>
{/block}

{block name="body"}
<div class="container-fluid" style="height: 100%;">
    <div class="row" style="height: 100%;">
        <div class="col-md-2"></div>
        <div class="col-md-8" style="height: 100%;">
            <form action="{$_form.article_create}"  style="height: 100%;" method="post">
                <lable for="title">标题</lable>
                <input type="text" class="form-control" name="title" placeholder="请输入标题" id="title">
                <br />
                <div>
                    <lable for="editor">正文</lable>
                    <textarea name="content" id="editor"></textarea>
                </div>
                <div style='text-align: center'>
                    <button type="submit" class="btn btn-primary">申请发表</button>
                </div>
            </form>
        </div>
    </div>
</div>
<script>
    CKEDITOR.replace( 'content');
</script>
{/block}

{block name="footer"}{/block}